package com.ruoyi.reservationserver.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;

/**
 * 场地表(Court)实体类
 *
 * @author makejava
 * @since 2023-07-04 16:21:47
 */
@Data
public class Court implements Serializable {
    private static final long serialVersionUID = 291414943874795762L;
    /**
     * 场地ID
     */
    @TableId(value = "court_id",type = IdType.AUTO)
    private Integer courtId;
    /**
     * 外键，球馆id
     */
    private Integer stadiumId;
    /**
     * 外键，球场类型
     */
    private Integer courtTypeId;
    /**
     * 球场名称
     */
    private String courtName;
    /**
     * 可容纳人数
     */
    private String capacity;
    /**
     * 场地状态：0维修，1可预约
     */
    private Integer courtStatus;
    /**
     * 球馆名称
     */
    @TableField(exist = false)
    private String StadiumName;


    public Integer getCourtId() {
        return courtId;
    }

    public void setCourtId(Integer courtId) {
        this.courtId = courtId;
    }

    public Integer getStadiumId() {
        return stadiumId;
    }

    public void setStadiumId(Integer stadiumId) {
        this.stadiumId = stadiumId;
    }

    public Integer getCourtTypeId() {
        return courtTypeId;
    }

    public void setCourtTypeId(Integer courtTypeId) {
        this.courtTypeId = courtTypeId;
    }

    public String getCourtName() {
        return courtName;
    }

    public void setCourtName(String courtName) {
        this.courtName = courtName;
    }

    public String getCapacity() {
        return capacity;
    }

    public void setCapacity(String capacity) {
        this.capacity = capacity;
    }

    public Integer getCourtStatus() {
        return courtStatus;
    }

    public void setCourtStatus(Integer courtStatus) {
        this.courtStatus = courtStatus;
    }

}

